package com.bright.ghj.overt.pojo.vo;

import com.bright.ghj.common.pojo.vo.BaseVO;
import com.bright.ghj.overt.enums.FieldAlign;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Author hxj
 * @Date 2024/1/3 11:33
 * @Description
 */
@Data
@NoArgsConstructor
public class TableHeaderVO extends BaseVO {

    private String fieldName;

    private String fieldDoc;

    private Integer fieldLen;

    private BigDecimal fieldDec;

    private String fieldFormat;

    private Boolean bullFlag;

    private Boolean sumFlag;

    private String type;

    private Boolean countFlag;

    private Integer fieldFirst;

    private Boolean notper;

    private String fieldWith;

    private String sort;

    private Integer htmlLen;

    private Boolean isXls;

    private Integer iSort;

    private Boolean isMust;

    private Boolean isFrozen;

    private Boolean isShow;

    private int align;

    // 是否隐藏
    private Boolean hidden = false;

    // 跳转网址
    private String jumpUrl;

    public TableHeaderVO(String fieldName, String fieldDoc, FieldAlign align) {
        this.setFieldName(fieldName);
        this.setFieldDoc(fieldDoc);
        this.align = align.getValue();
    }

}
